def remove_duplicates(list):
    temp=[]
    tag=0
    print temp
    for i in list:
        if len(temp)==0:
            temp.append(i)
        tag=1
        for j in temp:
            if j==i:
                tag=0
        if tag==1:
            temp.append(i)
        print temp
    return temp 
print remove_duplicates([1,1,2,2])